#coding=utf-8
import random
scores =[]
num ={}
for i in range(1000):
   scores.append(random.randint(20,100))
scores.sort()#排序
for i in scores:
   counts = scores.count(i)#统计次数
   num[i] = counts
print('数字','出现次数')
for key in num:
   print('%s\t%s'%(key,num[key]))